.study-section h2 {
    margin: 0;
}

.study-section {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.discover-big-banner {
    display: grid;
    background: var(--accent-color);
    background-image: url("/resources/banners/br_pattern_a_1121x291.svg");
    background-size: 100% 100%;
    width: 100%;
    height: 300px;
    border-radius: var(--primary-border-radius);
    overflow: hidden;
}

.black-layer {
    grid-column: 1/2;
    grid-row: 1/2;
    width: 100%;
    height: 100%;
    opacity: 0;
    background: radial-gradient(black, transparent);
}

.discover-big-banner .banner-img-a {
    grid-column: 1/2;
    grid-row: 1/2;
    margin-left: auto;
    margin-top: auto;
}

.discover-big-banner .banner-img-b {
    grid-column: 1/2;
    grid-row: 1/2;
    margin-left: -12px;
    margin-top: auto;
    margin-bottom: auto;
}

.discover-big-banner-content-container {
    grid-column: 1/2;
    grid-row: 1/2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.discover-big-banner-content-container h2 {
    margin: 0;
    color: var(--on-accent-text-color) !important;
    font-size: 24px;
    font-weight: 600;
    text-align: center;
}

.discover-big-banner-content-container p {
    margin: 0;
    color: var(--on-accent-text-color) !important;
    font-size: 16px;
    font-weight: 500;
    max-width: 500px;
    text-align: center;
}

.metrics-container {
    display: flex;
    flex-direction: row;
    gap: 50px;
    margin-top: 18px;
}

.metric-item {
    display: flex;
    flex-direction: column;
}

.metric-item h3 {
    margin: 0;
    color: var(--on-accent-text-color) !important;
    font-size: 50px;
    font-weight: 600;
}

.metric-item p {
    margin: 0;
    color: var(--on-accent-text-color) !important;
    font-size: 16px;
    font-weight: 500;
}


.discover-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    height: fit-content;
}

.discover-item {
    display: flex;
    flex-direction: column;

    align-items: start;

    padding: 12px;
    border-radius: var(--primary-border-radius);
    background: var(--on-backgroud-color);
    width: calc(100% - 24px);
    height: fit-content;

    border: 1px solid var(--background-color);
    transition: all 0.5s;

    cursor: pointer;

    gap: 12px;
}

.discover-item:hover {
    border: 1px solid var(--on-accent-light-background-color);
}

.discover-item img {
    width: 100%;
    border-radius: 16px;
}

.discover-item h4 {
    margin: 0;
    margin-right: auto;
    font-size: 16px;
    font-weight: 500;
}

.discover-item p {
    margin: 0;
    width: 100%;
    font-size: 14px;
    font-weight: 500;
    color: var(--black-500);
}

.creator-avatar {
    height: 24px;
    width: 24px;
    max-width: 24px;
}

.study-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
    gap: 16px;
}

.study-item {
    gap: 24px;
    display: flex;
    padding: 16px;
    border-radius: 18px;
    background: var(--on-backgroud-color);
    border: 1px solid var(--on-backgroud-color);
    transition: all 0.5s;
    align-items: center;
}

.study-item:hover {
    border: 1px solid var(--accent-color);
}

.study-item h3 {
    margin: 0;
    color: var(--primary-text-color);
}

.study-item p {
    margin: 0;
    color: var(--secondary-text-color);
}

.study-item-header {
    display: flex;
    flex-direction: column;
    align-items: start;
    justify-content: center;
    gap: 4px;
}

.study-item .icon-container {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 64px;
    width: 64px;
    border-radius: 50%;
    background: var(--blue-50);
}

.study-item .icon-container img {
    filter: var(--blue-500-filter);
    height: 38px;
    width: 38px;
}

.study-item .dot-divider {
    height: 4px;
    width: 4px;
    margin-top: 2px;
    border-radius: 50%;
    background: var(--secondary-text-color);
}

.icon-progress-wrapper {
    position: relative;
    display: grid;
    place-items: center;
    width: 72px;  /* 64px + 2*6px */
    height: 72px;
}

.icon-progress-wrapper svg {
    position: absolute;
    top: 0;
    left: 0;
    transform: rotate(-90deg);
    pointer-events: none;
    width: 72px;
    height: 72px;
}

.icon-progress-wrapper svg circle {
    fill: none;
    stroke: var(--accent-color);
    stroke-width: 4;
    stroke-dasharray: 239.4; /* 2π * r, где r = 38 */
    stroke-dashoffset: 239.4;
    transition: stroke-dashoffset 0.4s ease;
}

#started-tests-placeholder {
    display: flex;
    gap: 16px;
}

.started-grid {
    width: 100%;
    max-height: 106px;
    display: flex;
    gap: 16px;
}

.started-grid .study-item {
    flex: 0;
}

.started-grid .study-item:first-child {
    flex: 1;
    min-width: 500px;
}

.started-grid .study-item .study-item-header {
    display: none;
}

.started-grid .study-item:first-child .study-item-header {
    display: block;
}

.show-all-button {
    min-width: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.show-all-button img {
    height: 32px;
    width: 32px;
}


.study-filter .chip-select-trigger {
    background: var(--on-backgroud-color) !important;
    font-weight: 600;
    padding: 12px;
    border-radius: 12px;
    height: 24px;
    border: none !important;
    box-shadow: 0 0 4px #0E101312;
    transition: all 0.5s;
}

.study-filter span {
    font-size: 18px;
    line-height: 18px;
    color: var(--primary-text-color);
}

.study-filter .general-tag {
    background: var(--on-backgroud-color) !important;
    border: none !important;
    display: flex;
    flex-direction: row-reverse;
}

.study-filter .general-tag img {
    height: 20px;
    width: 20px;
}